﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace POCOS
{
    [DataContract]
    [Table("UserProfile")]
    public class UserProfile
    {
        [DataMember]
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int UserId { get; set; }
        public string UserName { get; set; }

        [DataMember]
        [Required]
        [Display(Name = "Email Address")]
        [EmailAddress]
        public string Mail { get; set; }
         
    }

}
